<!DOCTYPE html>
<html lang="en">
    <head>
        <title></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="js/jquery.min.js" type="text/javascript"></script>
        <link rel="stylesheet" href="css/mui.min.css">
        <link rel="stylesheet" href="css/style.css">
        <script src="js/jquery.min.js"></script>
    </head>
    <body class="smrz-bj">
      <div class="jf-mains">
        <div class="jf-top jf-topvs">
          <p class="ye-top-ps">剩余积分</p>
          <p class="ye-top-ps2"><i>￥</i>4600.00</p>
          <div class="ye-top-but">充值</div>
        </div>
        <ul class="jf-nav">
          <li class="active">
            <span class="jf-span">收入</span>
          </li>
          <li>
            <span class="jf-span">支出</span>
          </li>          
        </ul>
        <!-- 收入 -->
        <ul class="sr-nav">
          <li>
            <div class="sr-left">
              <p class="p1">在线充值</p>
              <p class="p2">2018.4.12 12:35</p>
            </div>
            <div class="sr-rig">￥200</div>
          </li>
        </ul>
        <!-- 支出 -->
        <ul class="sr-nav" style="display: none;">
          <li>
            <div class="sr-left">
              <p class="p1">购物赠送<i>（订单号：888888888888）</i></p>
              <p class="p2">2018.4.12 12:35</p>
            </div>
            <div class="sr-rig sr-rig2">- ¥900.00</div>
          </li>
        </ul>        
      </div>
    </body>
</html>
 <script type="text/javascript">
  $(".jf-nav li").bind('click',function(){
    $(this).addClass("active").siblings().removeClass("active");
    $('.sr-nav').eq($(this).index()).show().siblings(".sr-nav").hide(); 
  });
  </script>